<%@page import="itsm.isperp.module.entity.callcenter.CcAgent"%>
<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@page import="itsm.isperp.framework.web.request.JqGridFilterRuleOp"%>
<%@page import="itsm.isperp.framework.web.request.JqGridRequest"%>
<%@page import="itsm.isperp.module.service.callcenter.CcAgentService"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<style>
<!--
.ccBtn {
	background-repeat: no-repeat !important;
	width: 35px; height : 55px; padding-left : 0px; padding-right : 0px;
	line-height : normal; color : gray; padding-top : 34px; white-space :
	nowrap; text-align : center; color : gray; border : none !important;
	height : 55px; padding-left : 0px; padding-right : 0px; line-height :
	normal; color : gray; padding-top : 34px; white-space : nowrap;
	text-align: center;
	height: 55px;
	padding-left: 0px;
	padding-right: 0px;
	line-height: normal;
	color: gray;
	padding-top: 34px;
	white-space: nowrap;
	text-align: center;
	color: gray;
	border: none !important;
	height: 55px;
	padding-left: 0px;
	padding-right: 0px;
	line-height: normal;
	color: gray;
	padding-top: 34px;
	white-space: nowrap;
}
-->
</style>
<%
	CcAgentService ccAgentService = ContextHolder
			.getSpringBean("ccAgentService");
	String cagnum = ccAgentService.getAgent();
%>

<div id="callcenterToolbar"
	style="width:280px;height:60px;padding:3px;position: fixed;bottom: 5px;left: 5px;z-index: 99999">
	<button id="btnPhoneStatus" class="ccBtn disabled"
		style="position:absolute;left:13px; border:none; background: url(img/callcenter/telephone.png) no-repeat">
		未连接</button>

</div>
 
<script src="js/call/socket.io-1.3.7.js"></script>
<script src="js/call/reconnecting-websocket.min.js"></script>
<script src="js/call/lserver.js"></script>

<script>
    $(function () {
        ws_ip = "<%=ContextHolder.getConfigByKey("ccServerIp")%>";
        ws_port = "<%=ContextHolder.getConfigByKey("ccServerPort")%>";
		connect();
	});
    var ccAgantNumber="<%=cagnum%>";
    
</script>







